package App.Model.Account;

import javax.persistence.Entity;
import javax.persistence.Id;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;
import lombok.experimental.Accessors;

@Entity
@Builder
@ToString
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@TableName("crm_user")
public class CrmUser {

    @TableId("id")
    private int id;

    @TableField("username")
    private String username;

    @TableField("password")
    private String password;

    @TableField("recstatus")
    private int recstatus;

    @TableField("realname")
    private String realname;

@Id
public int getId() {
    return id;
}

public void setId(int id) {
    this.id = id;
}

public String getUsername() {
    return username;
}

public void setUsername(String username) {
    this.username = username;
}

public String getPassword() {
    return password;
}

public void setPassword(String password) {
    this.password = password;
}

public int getRecstatus() {
    return recstatus;
}

public void setRecstatus(int recstatus) {
    this.recstatus = recstatus;
}

public String getRealname() {
    return realname;
}

public void setRealname(String realname) {
    this.realname = realname;
}
}

